Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add use of bool::then in sys/unix/process #95058

Merged
merged 1 commit into from
Mar 19, 2022

Conversation

wcampbell0x2a
Copy link
Contributor

Remove else { None } in favor of using bool::then()

Remove else { None } in favor of using bool::then()
@rust-highfive
Copy link
Collaborator

r? @joshtriplett

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 17, 2022
@dtolnay dtolnay changed the title feat: Add use of bool::then in sys/unix/process Add use of bool::then in sys/unix/process Mar 18, 2022
Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks

@dtolnay
Copy link
Member

dtolnay commented Mar 18, 2022

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Mar 18, 2022

📌 Commit b1f3179 has been approved by dtolnay

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 18, 2022
@joshtriplett
Copy link
Member

Could you please check how this affects codegen? I expect it to produce effectively the same code, but I would like to make sure.

@wcampbell0x2a
Copy link
Contributor Author

Could you please check how this affects codegen? I expect it to produce effectively the same code, but I would like to make sure.

Never done that but willing to learn it. What commands do I run for that?

@dtolnay
Copy link
Member

dtolnay commented Mar 18, 2022

Identical according to https://rust.godbolt.org/z/TY5Y39fxr.

@wcampbell0x2a
Copy link
Contributor Author

Identical according to https://rust.godbolt.org/z/TY5Y39fxr.

sweet

@joshtriplett
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Mar 18, 2022

💡 This pull request was already approved, no need to approve it again.

@bors
Copy link
Contributor

bors commented Mar 18, 2022

📌 Commit b1f3179 has been approved by joshtriplett

bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 18, 2022
…askrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang#94115 (Let `try_collect` take advantage of `try_fold` overrides)
 - rust-lang#94295 (Always evaluate all cfg predicate in all() and any())
 - rust-lang#94848 (Compare installed browser-ui-test version to the one used in CI)
 - rust-lang#94993 (Add test for >65535 hashes in lexing raw string)
 - rust-lang#95017 (Derive Eq for std::cmp::Ordering, instead of using manual impl.)
 - rust-lang#95058 (Add use of bool::then in sys/unix/process)
 - rust-lang#95083 (Document that `Option<extern "abi" fn>` discriminant elision applies for any ABI)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit c8cf9e3 into rust-lang:master Mar 19, 2022
@rustbot rustbot added this to the 1.61.0 milestone Mar 19, 2022
@wcampbell0x2a wcampbell0x2a deleted the use-then-in-unix-process branch March 19, 2022 03:54
@dtolnay dtolnay self-assigned this Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants